package com.yuyin.liuchangjiang.mvptest.Base;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by liuchangjiang on 2018/1/10.
 */

public abstract class BaseActivity extends Activity{

    protected abstract int provideContentViewId();

    protected abstract void initData();

    protected abstract void setListener();

    protected abstract void doMore();
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ButterKnife.bind(this);
        setContentView(provideContentViewId());
        initData();
        doMore();
        setListener();

    }

    @Override
    protected void onStart() {
        super.onStart();
    }

    @Override
    protected void onResume() {
        super.onResume();
    }

    @Override
    protected void onPause() {
        super.onPause();
    }

    @Override
    protected void onStop() {
        super.onStop();
    }

    @Override
    protected void onDestroy() {

        super.onDestroy();
    }
}
